async function ajax(config){
    return await new Promise(function(resolve){
        $.ajax({
            dataType:"json",
            processData:false,
            ...config,
            success(res){
                resolve(res);
            }
        });
    });
    
}